package org.yeruyi.common.inter;

import android.app.Service;
import android.content.Context;
import android.content.Intent;

/**
 * Author:Yeruyi
 * Date:2018/3/27
 * Version:v1.0
 * Scope:
 * 部分功能，等毕设结束把这部分代码和royBaseView合并
 */
public interface IRoyWatchView {

    /**
     * Show the toast
     *
     * @param msg msg
     */
    void showToast(String msg);

    /**
     * Get context
     *
     * @return context
     */
    Context getActivityContext();

    /**
     * Finish Activity
     */
    void finishActivity();


    /**
     * 获取系统Service
     *
     * @param serviceName 系统服务名字
     * @return 系统服务
     */
    Object doGetSystemService(String serviceName);

    /**
     * 请求显示进度条
     *
     * @param msg 进度条信息
     */
    boolean showProcessDialog(String msg);

    /**
     * 请求关闭进度条
     */
    boolean dismissProcessDialog();


    /**
     * 跳转
     *
     * @param intent     intent
     * @param isFinished finished
     */
    void skipActivityWithIntent(Intent intent, boolean isFinished);


}
